home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / PictView / TPICTApp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-07-14  |  978 b   |  51 lines  |  [TEXT/KAHL]

  1. /*
  2. ** This is the TPICTApp class definition.  This class is an adaptation of 
  3. ** the class of the same name in the book, Elements of C++ Macintosh 
  4. ** Programming, by Dan Weston.
  5. **
  6. ** Copyright © 1991 Mark Gross 
  7. ** (RR2, Box 84, Clayville, NY 13322);         
  8. ** this file may be published everywhere, but no charge
  9. ** may be made for its use.  Please contact me about any bugs found.
  10. ** I'm also looking for Macintosh development work, so drop me a line
  11. ** if you think I could help.  
  12. */
  13.  
  14. #include "TPICTApp.h"
  15. #include "TPICTDoc.h"
  16. #include <oops.h>
  17.  
  18.  
  19. TDoc     *TPICTApp::MakeDoc(SFReply *reply)
  20. {
  21.     TPICTDoc *New;
  22.     
  23.     New = (TPICTDoc *)new(TPICTDoc);
  24.     return (New->Init(GetCreator(), reply));
  25. }/*end of function*/
  26.  
  27.  
  28. int        TPICTApp::GetNumFileTypes(void)
  29. {
  30.     return 1;
  31. }/*end of function*/
  32.  
  33.  
  34. void    TPICTApp::GetFileTypeList(void)
  35. {
  36.         fFileTypeList[0] = 'SPCT';
  37. }/*end of function*/
  38.  
  39. Boolean    TPICTApp::CanOpen(void)
  40. {
  41.     return TRUE;
  42. }
  43.  
  44.  
  45. Boolean    TPICTApp::CanNew(void)
  46. {
  47.     return FALSE;
  48. }
  49.  
  50.  
  51.